﻿    <meta name="viewport" content="width=device-width,initial-scale=1">
    <?php include_once MvcReg::$_moduleName . '/views/layout/head.php'; ?>
</head>
<body>
<?php include_once MvcReg::$_moduleName . '/views/layout/woody-prompt.php'; ?>
<?php include_once MvcReg::$_moduleName . '/views/layout/header.php'; ?>
<div id="main">
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                <?php include_once MvcReg::$_moduleName . '/views/layout/left_menu.php'; ?>
            </div>
            <div class="col-md-10">
                <div class="right-content">
                    <h3>
                        <ol class="breadcrumb">
                            <li><a href="?md=manage&cl=riders&at=riders_freight_list"><i class="fa fa-dashboard"></i><?php echo $menu["breadcrumb_current"] ?></a></li>
                        </ol>
                    </h3>
                    <br>
                    <form name="mainform" action="" method="get">
                    <?php echo $hidden_data?>
                    <div class="table-responsive">
                        <div class="panel panel-default">
                            <div class="panel-body form-inline">

                                <div class="form-group">
                                    <label>骑手姓名:</label>
                                    <input type="text" name="_name"
                                           value="<?php echo $_name ?>"
                                           class="form-control input-sm" placeholder=""/>
                                </div>

                                <div class="form-group">
                                    <label>联系电话:</label>
                                    <input type="text" name="_phone"
                                           value="<?php echo $_phone ?>"
                                           class="form-control input-sm" placeholder=""/>
                                </div>

                                    <button type="submit" class="btn btn-primary"><span
                                                class="glyphicon glyphicon-search"></span>立即查询
                                    </button>
                            </div>
                        </div>
                        <table class="table table-hover">
                            <thead>
                            <tr class="info">
                                <th>序</th>
                                <th>骑手姓名</th>
                                <th>联系电话</th>
                                <th>订单量</th>
                                <th>运费总金额</th>
                                <th>服务城市</th>
                                <th>服务门店</th>
                                <th>功能</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php
                            $n = 0;
                            foreach ($rsp_list as $k => $row) {
                                $n++;
                                $item = $n + ($page - 1) * $number_page;
                                $id = $row["id"];
                                $express_type =Data::$_express_type[$row["express_type"]] ;
                                if ($row['express_type'] == "no") {
                                    $express_type= "<label class='red'>".$express_type."</label>";
                                }
                                ?>
                                <tr data-id="<?php echo $id?>">
                                    <td><?php echo $item ?></td>
                                    <td><?php echo $row['express_courier'] ?></td>
                                    <td><?php echo $row['express_mobile'] ?></td>
                                    <td><?php echo $row['num'] ?></td>
                                    <td><?php echo $row['fee'] ?></td>
                                    <td><?php echo $row['front_city'] ?></td>
                                    <td><?php echo  $row['storename'] ?></td>
                                    <td>
                                        <input name="input" value="查看明细"
                                               onclick="edit('<?php echo $row['express_mobile']; ?>', '<?php echo $page; ?>','<?php echo $this_url?>_check')"
                                               type="button" class="btn btn-success btn-sm"/>
                                    </td>
                                </tr>
                            <?php } ?>
                            </tbody>
                        </table>
                        <div class="page">
                                <div class="pagination pull-left">共<?php echo $total_count ?>笔记录</div>
                                <?php if (!empty($rsp_page_list)) echo $rsp_page_list; ?>
                        </div>
                    </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?php include_once MvcReg::$_moduleName . '/views/layout/footer.php'; ?>
</body>
</html>
